<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>文本关键词回复</title>
	<link rel="shortcut icon" type="image/ico" href="${basePath}/favicon.ico?v=1"/>
	<link rel="stylesheet" type="text/css" href="${basePath}/css/style-1.css" />
	<link rel="stylesheet" type="text/css" href="${basePath}/css/style_2_common.css" />
	<link rel="stylesheet" type="text/css" href="${basePath}/js/layer/skin/layer.css" />
	<script type="text/javascript" src="${basePath}/js/jquery-1.8.3.min.js"></script>
</head>
<body id="nv_member" class="pg_CURMODULE">
<#assign current='menu_txt'>
	<div id="wp" class="wp">
		<#include "/include/header.html"/>
		<!--中间内容-->
		<div class="contentmanage">
			<div class="developer">
				<div class="tableContent">
					<#include "/include/left.html"/>
					<#include "/include/wxtop.html"/>
					<div class="content">
						<div class="cLine">
							<div class="pageNavigator left">
								<a href='${basePath}/admin/txt/toAdd' class='btnGrayS vm bigbtn'><img src="${basePath}/images/text.png" class="vm" />新增文本自定义回复</a>
								<a href='${basePath}/pic/add' class='btnGrayS vm bigbtn'><img src="${basePath}/images/pic.png" class="vm" />新增图文自定义回复</a>
							</div>
							<div class="clr"></div>
						</div>
						<div class="msgWrap">
							<form method="post" action="${basePath}/admin/txt/list" id="info">
								<input name="wxid" type="hidden" value="${wxid?default('')}" />
								<table class="ListProduct Shallow_border_color" border="0"
								cellSpacing="0" cellPadding="0" width="100%">
									<thead>
										<tr>
											<th style="width:10%;">编号</th>
											<th class="keywords">关键词</th>
											<th class="answer">回答</th>
											<th class="category">匹配类型</th>
											<#-- <th class="time">浏览次数</th> -->
											<th class="time">时间</th>
											<th class="edit norightborder">操作</th>
										</tr>
									</thead>
									<tbody>
										<#if page?exists>
										<#list page.recordList as bean>
										<tr>
											<td>${bean_index+1}</td>
											<td>${bean.keyword?default('')}</td>
											<td><div class="answer_text" title="${bean.content?default('')}">${bean.content?default('')}</div></td>
											<td><#if bean.keywordType==1>完全匹配<#else>模糊匹配</#if></td>
											<#-- <td>${bean.watchTimes?default(0)}</td> -->
											<td>${bean.createTime?date}</td>
											<td class="norightborder">
												<a href="javascript:void(0);" onclick="editItem('${bean.id?default(0)}','${bean.wxid?default(0)}');">编辑</a>
												<a href="javascript:void(0);" onclick="delItem('${bean.id?default(0)}','${bean.wxid?default(0)}');">删除</a>
											</td>
										</tr>
										</#list>
										</#if>
									</tbody>
								</table>
							</form>
							<form action="" method="post" id="modify_form" data-url="${basePath}">
								<input type="hidden" name="wxid" />
								<input type="hidden" name="id" />
							</form>
						</div>
						<#assign formUrl="${basePath}/admin/txt/list?">
						<#include "/include/pagination.html">
					</div>
					<div class="clr"></div>
				</div>
			</div>
		</div>
	</div>
	<#include "/include/footer.html"/>
	
	<script type="text/javascript" src="${basePath}/js/layer/layer.m.js"></script>
	<script type="text/javascript" src="${basePath}/js/include/include_txt_list.js"></script>
</body>
</html>